﻿@using Step4.Unit8.Modules
@model RegisterViewModel
@{
    ViewData["Title"] = "Register";
    Layout = "_Layout";
}

<h1>注册</h1>
<form asp-action="SubmitRegister" method="post">
    <div asp-validation-summary="ModelOnly"></div>
    <div>
        <label asp-for="UserName"></label>
        <input asp-for="UserName" />
        <span asp-validation-for="UserName"></span>
    </div>
    <div>
        <label asp-for="Pwd"></label>
        <input asp-for="Pwd" />
        <span asp-validation-for="Pwd"></span>
    </div>
    <div>
        <label asp-for="Email"></label>
        <input asp-for="Email" />
        <span asp-validation-for="Email"></span>
    </div>
    <div>
        <input type="submit" class="btn btn-primary" value="注册" />
    </div>
</form>

@section Scripts
{
    <partial name="_ValidationScriptsPartial" />
}